Optimal. Leaf size=154 \[ -\frac {B \text {ArcTan}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}+\frac {B \text {ArcTan}\left (1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}-\frac {2 B \sqrt {\cot (c+d x)}}{d}-\frac {B \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}+\frac {B \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 154, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 10, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {21, 3554,
3557, 335, 217, 1179, 642, 1176, 631, 210} \begin {gather*} -\frac {B \text {ArcTan}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}+\frac {B \text {ArcTan}\left (\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{\sqrt {2} d}-\frac {2 B \sqrt {\cot (c+d x)}}{d}-\frac {B \log \left (\cot (c+d x)-\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{2 \sqrt {2} d}+\frac {B \log \left (\cot (c+d x)+\sqrt {2} \sqrt {\cot (c+d x)}+1\right )}{2 \sqrt {2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 210
Rule 217
Rule 335
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 3554
Rule 3557
Rubi steps
\begin {align*} \int \frac {\cot ^{\frac {3}{2}}(c+d x) (a B+b B \tan (c+d x))}{a+b \tan (c+d x)} \, dx &=B \int \cot ^{\frac {3}{2}}(c+d x) \, dx\\ &=-\frac {2 B \sqrt {\cot (c+d x)}}{d}-B \int \frac {1}{\sqrt {\cot (c+d x)}} \, dx\\ &=-\frac {2 B \sqrt {\cot (c+d x)}}{d}+\frac {B \text {Subst}\left (\int \frac {1}{\sqrt {x} \left (1+x^2\right )} \, dx,x,\cot (c+d x)\right )}{d}\\ &=-\frac {2 B \sqrt {\cot (c+d x)}}{d}+\frac {(2 B) \text {Subst}\left (\int \frac {1}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{d}\\ &=-\frac {2 B \sqrt {\cot (c+d x)}}{d}+\frac {B \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{d}+\frac {B \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {\cot (c+d x)}\right )}{d}\\ &=-\frac {2 B \sqrt {\cot (c+d x)}}{d}+\frac {B \text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 d}+\frac {B \text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 d}-\frac {B \text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 \sqrt {2} d}-\frac {B \text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {\cot (c+d x)}\right )}{2 \sqrt {2} d}\\ &=-\frac {2 B \sqrt {\cot (c+d x)}}{d}-\frac {B \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}+\frac {B \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}+\frac {B \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}-\frac {B \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}\\ &=-\frac {B \tan ^{-1}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}+\frac {B \tan ^{-1}\left (1+\sqrt {2} \sqrt {\cot (c+d x)}\right )}{\sqrt {2} d}-\frac {2 B \sqrt {\cot (c+d x)}}{d}-\frac {B \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}+\frac {B \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )}{2 \sqrt {2} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 138, normalized size = 0.90 \begin {gather*} -\frac {B \left (2 \sqrt {2} \text {ArcTan}\left (1-\sqrt {2} \sqrt {\cot (c+d x)}\right )-2 \sqrt {2} \text {ArcTan}\left (1+\sqrt {2} \sqrt {\cot (c+d x)}\right )+8 \sqrt {\cot (c+d x)}+\sqrt {2} \log \left (1-\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )-\sqrt {2} \log \left (1+\sqrt {2} \sqrt {\cot (c+d x)}+\cot (c+d x)\right )\right )}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 26.60, size = 969, normalized size = 6.29
method | result | size |
default | \(\text {Expression too large to display}\) | \(969\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 127, normalized size = 0.82 \begin {gather*} \frac {2 \, \sqrt {2} B \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + \frac {2}{\sqrt {\tan \left (d x + c\right )}}\right )}\right ) + 2 \, \sqrt {2} B \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - \frac {2}{\sqrt {\tan \left (d x + c\right )}}\right )}\right ) + \sqrt {2} B \log \left (\frac {\sqrt {2}}{\sqrt {\tan \left (d x + c\right )}} + \frac {1}{\tan \left (d x + c\right )} + 1\right ) - \sqrt {2} B \log \left (-\frac {\sqrt {2}}{\sqrt {\tan \left (d x + c\right )}} + \frac {1}{\tan \left (d x + c\right )} + 1\right ) - \frac {8 \, B}{\sqrt {\tan \left (d x + c\right )}}}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} B \int \cot ^{\frac {3}{2}}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 9.40, size = 65, normalized size = 0.42 \begin {gather*} -\frac {2\,B\,\sqrt {\frac {1}{\mathrm {tan}\left (c+d\,x\right )}}}{d}-\frac {{\left (-1\right )}^{1/4}\,B\,\mathrm {atan}\left ({\left (-1\right )}^{1/4}\,\sqrt {\frac {1}{\mathrm {tan}\left (c+d\,x\right )}}\right )\,1{}\mathrm {i}}{d}-\frac {{\left (-1\right )}^{1/4}\,B\,\mathrm {atanh}\left ({\left (-1\right )}^{1/4}\,\sqrt {\frac {1}{\mathrm {tan}\left (c+d\,x\right )}}\right )\,1{}\mathrm {i}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________